init script: Enable to run xend stop when dom0 shutdown
authorKeir Fraser <keir.fraser@citrix.com>
Thu, 5 Mar 2009 15:06:06 +0000 (15:06 +0000)
committerKeir Fraser <keir.fraser@citrix.com>
Thu, 5 Mar 2009 15:06:06 +0000 (15:06 +0000)
Signed-off-by: Kazuhiro Suzuki <kaz@jp.fujitsu.com>
tools/hotplug/Linux/init.d/xend

index 4bfc799465312ebce1ec31efc798beaeb2c2d322..32dfc84132cd154c76148d398abc00acd011b2e8 100755 (executable)
@@ -39,11 +39,13 @@ function await_daemons_up
 
 case "$1" in
   start)
+       touch /var/lock/subsys/xend
        xend start
        await_daemons_up
        ;;
   stop)
        xend stop
+       rm -f /var/lock/subsys/xend
        ;;
   status)
        xend status